package com.zhl.spark.core.simple.complex

/**
 * @program: demos
 * @description: ${description}
 * @author: 刘振华
 * @create: 2020-11-30 17:36
 **/
class PlexTask extends Serializable {
    var datas : List[Int] = _
    var logic : Int=>Int = _

    def compute() = {
        datas.map(logic)
    }
}
